package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.RegionalAgentMapper;
import com.hcb.micro.dto.RegionalAgent;
import com.hcb.micro.service.IRegionalAgentService;

@Service("RegionalAgentService")
public class RegionalAgentServiceImpl implements IRegionalAgentService {
	@Autowired
	RegionalAgentMapper regionalAgentMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return regionalAgentMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(RegionalAgent record) {
		return regionalAgentMapper.insert(record);
	}

	@Override
	public int insertSelective(RegionalAgent record) {
		return regionalAgentMapper.insertSelective(record);
	}

	
	@Override
	public List<RegionalAgent> selectByPrimaryKey(Map<String,Object> records) {
		return regionalAgentMapper.selectByPrimaryKey(records);
	}

	@Override
	public int updateByPrimaryKeySelective(Map<String,Object> record) {
		return regionalAgentMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(RegionalAgent record) {
		return regionalAgentMapper.updateByPrimaryKey(record);
	}

}
